package com.sword.invoice.nst.adapt;

import com.sword.common.bean.Result;
import com.sword.invoice.bean.enums.InvoiceChannelEnum;
import com.sword.invoice.nst.infrastructure.ISNstService;
import com.sword.invoice.nst.infrastructure.impl.ISNstServiceImpl;
import com.sword.invoice.repository.AbsBlueInvoiceStrategy;

/**
 * @description: 诺税通开蓝票渠道
 * @author：Lv.RJ
 * @version: 1.0.0
 * @create: 2025/02/17
 **/
public class NstBlueInvoiceImpl extends AbsBlueInvoiceStrategy {
    //方式1
    /*    @Autowired
        ISLqService lqService;*/

    //方式2
    /*@Autowired
    ISLqServiceImpl lqService;*/

    //方式3
    private static ISNstService driverService = new ISNstServiceImpl();

    /**
     * 重新方法
     */
    @Override
    public void doBeforeInvoiceHandler() {
    }

    /**
     * 编写执行
     */
    @Override
    public Result doInvoiceHandler() {
        String dd = driverService.invoicer();
        return Result.succeed();
    }

    @Override
    public String getChannelCode() {
        return InvoiceChannelEnum.NST_INVOICE.getCode();
    }
}
